package com.nce.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.Page;
import org.springside.modules.orm.PropertyFilter;

import com.nce.dao.MblogVipDao;
import com.nce.entity.MblogVip;

@Component
@Transactional
public class MblogVipService {

	@SuppressWarnings("unused")
	private static Logger logger = LoggerFactory.getLogger(MblogVipService.class);
	
	@Autowired
	private MblogVipDao mblogVipDao;

	public Page<MblogVip> searchMblogVipPage(Page<MblogVip> page,
			List<PropertyFilter> filters) {
		return mblogVipDao.findPage(page, filters);
	}

	public void saveMblogVip(MblogVip entity) {
		mblogVipDao.save(entity);
		
	}

	public void deleteMblogVip(Long id) {
		mblogVipDao.delete(id);
		
	}

	public MblogVip getMblogVip(Long id) {
		return mblogVipDao.get(id);
	}
	
}
